package com.itlong.cloud.POJO.DTO.property;

import com.itlong.cloud.POJO.DTO.BaseDTO;
import com.itlong.cloud.enumerate.ImportAddressOperationType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <desc>
 *    从Excel(*.xls)导入的单元信息
 * </desc>
 *
 * @createDate 2017-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyProjectImportUnitInfoDTO   extends BaseDTO implements Serializable {

    private String unitId; //单元ID

    private  String unitNum; //单元编号，2位，01-09

    private String buildId; //楼栋ID

    private String projectId; //项目编号

    private  String unitAlias; //单元代号（单元编码，项目内唯一，默认由buildNum + unitNum生成，支持用户自定义）

    private  String unitName; //单元名称

    private Date createTime;            //创建时间

    private Date updateTime;            //更新时间

    private Integer status;             //状态：0删除 1正常 2禁用

    private Boolean needNotifyIntercom; //是否需要通知云对讲(仅更新单元且单元代号变化时需要通知)

    private ImportAddressOperationType importAddressOperationType;   //操作类型

    private Map<String,PropertyProjectImportRoomInfoDTO> roomsInFile;  //导入文件中当前单元下的房屋列表<roomNum,BuildInfoPO>

    public PropertyProjectImportUnitInfoDTO(){
        roomsInFile = new HashMap<>();
    }

}
